home *** CD-ROM | disk | FTP | other *** search
/ Interactive Quarterly / The Best of New Machine Publishing 1 - Disc 4: Interactive Quarterly.iso / pc / xtras / pomlite.dir / Documentation_15.txt < prev    next >
Encoding:
Text File  |  1996-10-06  |  1.1 KB  |  36 lines

  1. setTextStyle 
  2.  
  3. Syntax: setTextStyle documentObject, styleString
  4.  
  5. This command sets the text style that will be applied to non-styled text data (such as strings) that are subsequently appended to the PrintOMatic Lite document object. The names of the style values correspond exactly to the Director "textStyle" property. Possible values for text styles are:
  6.  
  7.     normal
  8.     plain
  9.     bold
  10.     italic
  11.     underline
  12.  
  13. On the Macintosh, the following additional styles are available:
  14.  
  15.     outline
  16.     condense
  17.     extend
  18.     shadow
  19.  
  20. All values except normal or plain are added together in a call to setTextStyle, so you can combine a number of styles together in a single call. 
  21.  
  22. Example:
  23.  
  24. The following example creates a PrintOMatic Lite document object, sets the default font to bold italicized 10 point Helvetica, and prints a short text string:
  25.  
  26.     set doc = new(xtra "PrintOMatic_Lite")
  27.     if not objectP(doc) then exit
  28.     setTextStyle doc, "bold, italic"
  29.     setTextFont doc, "Helvetica"
  30.     setTextSize doc, 10
  31.     append doc, "Some sample text to print out."
  32.     if doJobSetup(doc) then print doc
  33.     set doc = 0
  34.  
  35.  
  36.